import assessCheckApi from './api'
import { axios } from '@/utils/request'
import router from '@/router/index'
import blobType from '@/common/blobType'

  //详情
  export function queryJobLogPageById(data) {
    return axios({
        url: assessCheckApi.queryJobLogPageById,
        method:'get' ,
        params:data,
        url_1:'outside'
    })
  }

  //获取个人统计
  export function queryMyFlowTjData(data) {
    return axios({
        url: assessCheckApi.queryMyFlowTjData,
        method:'get' ,
        params:data,
        url_1:'outside'
    })
  }

  //科室待办
  export function queryAllYwflFlowJob(data) {
    return axios({
        url: assessCheckApi.queryAllYwflFlowJob,
        method:'get' ,
        params:data,
        url_1:'outside'
    })
}
// OA未读消息提示
export function sysMessList(parameter) {
    return axios({
        url: assessCheckApi.sysMessList,
        method: 'get',
        params: parameter,
        url_2:'outside'
    })
}
// 通过id批量已读自己的信息通知
export function getTzMessage(parameter) {
    return axios({
        url: assessCheckApi.getTzMessage,
        method: 'get',
        params: parameter,
        url_2:'outside'
    })
}

export function mydbQueryAlloaFlowJob(data) {
    return axios({
        url: assessCheckApi.mydbQueryAlloaFlowJob,
        method:'get' ,
        params:data,
        url_2:'outside'
    })
  }

// 查询用户顶级权限菜单
export function queryTopMenuList(data) {
    return axios({
        url: assessCheckApi.queryTopMenuList,
        method:'get' ,
        params:data,
        url_1:'outside'
    })
}
// 查询用户对应的子菜单列表
export function queryTopChildrenMenuList(data) {
    return axios({
        url: assessCheckApi.queryTopChildrenMenuList,
        method:'get' ,
        params:data,
        url_1:'outside'
    })
}
// 流程页面表-通过jobid查询
export function queryByJodId(params){
    return axios({
      url: assessCheckApi.queryByJodId,
      method:'get' ,
      params:{...params},
      url_2:'outside',
    })
}

// -----------公告-----------
// 有效公告-分页查询
export function queryPageYxNotice(data) {
    return axios({
        url: assessCheckApi.queryPageYxNotice,
        method:'get' ,
        params:data,
        url_1:'outside'
    })
}

//所有菜单

export function menuQueryAllMenuList(data) {
    return axios({
        url: assessCheckApi.menuQueryAllMenuList,
        method:'get' ,
        params:data,
        url_1:'outside'
    })
}

//点击功能权限
export function menuverifyAuth(data) {
    return axios({
        url: assessCheckApi.menuverifyAuth,
        method:'get' ,
        params:data,
        url_1:'outside'
    })
}

